﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpSetsList.aspx.cs" Inherits="UI.ModSalary.EmpSetsList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>人员帐套设置</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="pagetop">
        <tr class="td">
            <td>
                <div class="pagetopleft">
                    人员帐套设置</div>
            </td>
            <td>
                <div class="pagetopright">
                    工号<asp:TextBox ID="txtSeWord" runat="server" Width="56px" CssClass="InputCss"></asp:TextBox>
                    <asp:DropDownList ID="ddlSetsID" runat="server" CssClass="InputCss">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlDeptID" runat="server" CssClass="InputCss">
                    </asp:DropDownList>
                    <asp:Button ID="btnEmSearch" runat="server" Width="40px" Text="查询" OnClick="btnEmSearch_Click"
                        CssClass="ButtonCss" />
                    <asp:Button ID="btnSet" runat="server" Text="设置帐套" CssClass="ButtonCss" OnClick="btnSet_Click" />
                     <asp:Button ID="btnNoSets" runat="server" Text="无帐套员工" CssClass="ButtonCss" 
                        />
                     <asp:Button ID="btnDel" runat="server" Text="删除帐套" CssClass="ButtonCss" OnClick="btnDel_Click" />
                </div>
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="EmpCode" Width="100%" AutoGenerateColumns="false"
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
        CellPadding="3" GridLines="Horizontal"  CssClass="td">
        <Columns>
        <asp:TemplateField HeaderText="">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            <asp:BoundField DataField="DeptName" HeaderText="部门名称" SortExpression="DeptName"
                ItemStyle-HorizontalAlign="Center">
                <ItemStyle Width="120px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="工号" SortExpression="EmpCode" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('EmpItemAdd.aspx?EmpCode=<%# Eval("EmpCode")%>&SetsID=<%# Eval("SetsID")%>',880,610)">
                        <%# Eval("EmpCode") %></a>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="员工姓名" SortExpression="EmpName" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('EmpItemAdd.aspx?EmpCode=<%# Eval("EmpCode")%>&SetsID=<%# Eval("SetsID")%>',880,610)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
            <asp:BoundField DataField="DutyName" HeaderText="职务" SortExpression="DutyName">
                <ItemStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="AreaName" HeaderText="区域" SortExpression="AreaName">
                <ItemStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="StateName" HeaderText="状态" SortExpression="StateName">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="EmpSex" HeaderText="性别" SortExpression="EmpSex">
                <ItemStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="JoinTime" HeaderText="入职时间" DataFormatString="{0:d}" SortExpression="JoinTime">
                <ItemStyle Width="100px" />
            </asp:BoundField>
              <asp:TemplateField HeaderText="工资帐套" SortExpression="SetsName" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>                   
                        <%# Eval("SetsName")%>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
            <asp:BoundField DataField="SalaryState" HeaderText="工资状态" SortExpression="SalaryState">
                <ItemStyle Width="80px" />
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
    <div id="divAmount" class="amountLine"> 

     <asp:CheckBox ID="CheckBox2" runat="server" Text="全选"  CssClass="InputLineCss"
            OnCheckedChanged="CheckBox2_CheckedChanged" AutoPostBack="True" /> &nbsp;&nbsp;

    <asp:DropDownList ID="ddlSalaryType" runat="server" CssClass="InputCss">
                    </asp:DropDownList>
<asp:button runat="server" text="查询" CssClass="InputCss" ID="btnSearchBook" 
            onclick="btnSearchBook_Click"  /> 
<asp:button runat="server" text="加入" CssClass="InputCss" ID="btnAddBook" 
            onclick="btnAddBook_Click"  OnClientClick="return confirm('确定要加入所选择的人员吗?\n');"  /> 
            <asp:button runat="server" text="移除" CssClass="InputCss" ID="btnMove" 
            onclick="btnMove_Click"  OnClientClick="return confirm('确定要移除吗?\n');"  />&nbsp;&nbsp;
        <asp:Label ID="lbAmount" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>

